package com.example.flshtarvel.util;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;

public class RemoveDuplicate{

    public static ArrayList removeDuplicate_2(ArrayList arr){

        ArrayList list = new ArrayList();
        Iterator it = arr.iterator();
        while (it.hasNext()) {
            Object obj = (Object) it.next();
            if(!list.contains(obj)){
                list.add(obj);
            }
        }
        return list;

    }

}
